﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel;


namespace KingRoad.EPM.DeviceEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2018/4/19 10:51:03
    /// </summary> 
    [Serializable]
    [ModelMap("Bll_Meter", new string[] { "Id" })]
    public class BllMeterInfo : BaseEntity
    {
        public BllMeterInfo()
        {

        }
        
        
        private int _id;
        /// <summary>
        /// 主键
        /// </summary>
        [ColumnMap("Id", System.Data.DbType.Int32)]
        public int Id
        {
            get {return _id;}
            set
            {
                if (object.Equals(this._id, value) != true)
                {
                    this._id = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }
        
        
        private string _code;
        /// <summary>
        /// 仪表编号
        /// </summary>
        [ColumnMap("Code", System.Data.DbType.String)]
        [DisplayName("编号")]
        public string Code
        {
            get {return _code;}
            set
            {
                if (object.Equals(this._code, value) != true)
                {
                    this._code = value;
                    this.RaisePropertyChanged("Code");
                }
            }
        }
        
        
        private int _roadid;
        /// <summary>
        /// 绑定的车道Id
        /// </summary>
        [ColumnMap("RoadId", System.Data.DbType.Int32)]
        public int RoadId
        {
            get {return _roadid;}
            set
            {
                if (object.Equals(this._roadid, value) != true)
                {
                    this._roadid = value;
                    this.RaisePropertyChanged("RoadId");
                }
            }
        }


        private string _roadName;
        /// <summary>
        /// 仪表编号
        /// </summary>
        [ColumnMap("RoadName", System.Data.DbType.String)]
        [DisplayName("编号")]
             public string RoadName
        {
            get { return _roadName; }
            set
            {
                if (object.Equals(this._roadName, value) != true)
                {
                    this._roadName = value;
                    this.RaisePropertyChanged("RoadName");
                }
            }
        }


        private DateTime _banddate;
        /// <summary>
        /// 绑定日期
        /// </summary>
        [ColumnMap("BandDate", System.Data.DbType.DateTime)]
        public DateTime BandDate
        {
            get {return _banddate;}
            set
            {
                if (object.Equals(this._banddate, value) != true)
                {
                    this._banddate = value;
                    this.RaisePropertyChanged("BandDate");
                }
            }
        }
        
        
        private string _manufcode;
        /// <summary>
        /// 仪表生产编号
        /// </summary>
        [ColumnMap("ManufCode", System.Data.DbType.String)]
        public string ManufCode
        {
            get {return _manufcode;}
            set
            {
                if (object.Equals(this._manufcode, value) != true)
                {
                    this._manufcode = value;
                    this.RaisePropertyChanged("ManufCode");
                }
            }
        }
        
        
        private int _state;
        /// <summary>
        /// 设备状态Id
        /// </summary>
        [ColumnMap("State", System.Data.DbType.Int32)]
        public int State
        {
            get {return _state;}
            set
            {
                if (object.Equals(this._state, value) != true)
                {
                    this._state = value;
                    this.RaisePropertyChanged("State");
                }
            }
        }
        
        
        private string _usestate;
        /// <summary>
        /// 使用状态
        /// </summary>
        [ColumnMap("UseState", System.Data.DbType.String)]
        public string UseState
        {
            get {return _usestate;}
            set
            {
                if (object.Equals(this._usestate, value) != true)
                {
                    this._usestate = value;
                    this.RaisePropertyChanged("UseState");
                }
            }
        }
        
        
        private string _model;
        /// <summary>
        /// 设备型号
        /// </summary>
        [ColumnMap("Model", System.Data.DbType.String)]
        public string Model
        {
            get {return _model;}
            set
            {
                if (object.Equals(this._model, value) != true)
                {
                    this._model = value;
                    this.RaisePropertyChanged("Model");
                }
            }
        }
        
        
        private string _dducode;
        /// <summary>
        /// DDU编号
        /// </summary>
        [ColumnMap("DDUCode", System.Data.DbType.String)]
        public string DDUCode
        {
            get {return _dducode;}
            set
            {
                if (object.Equals(this._dducode, value) != true)
                {
                    this._dducode = value;
                    this.RaisePropertyChanged("DDUCode");
                }
            }
        }
        
        
        private DateTime _manufdate;
        /// <summary>
        /// 生产日期
        /// </summary>
        [ColumnMap("ManufDate", System.Data.DbType.DateTime)]
        public DateTime ManufDate
        {
            get {return _manufdate;}
            set
            {
                if (object.Equals(this._manufdate, value) != true)
                {
                    this._manufdate = value;
                    this.RaisePropertyChanged("ManufDate");
                }
            }
        }
        
        
        private string _chipcode;
        /// <summary>
        /// 芯片编号
        /// </summary>
        [ColumnMap("ChipCode", System.Data.DbType.String)]
        public string ChipCode
        {
            get {return _chipcode;}
            set
            {
                if (object.Equals(this._chipcode, value) != true)
                {
                    this._chipcode = value;
                    this.RaisePropertyChanged("ChipCode");
                }
            }
        }
        
        
        private string _material;
        /// <summary>
        /// 主要原材料组成
        /// </summary>
        [ColumnMap("Material", System.Data.DbType.String)]
        public string Material
        {
            get {return _material;}
            set
            {
                if (object.Equals(this._material, value) != true)
                {
                    this._material = value;
                    this.RaisePropertyChanged("Material");
                }
            }
        }
        
        
        private int _batchid;
        /// <summary>
        /// 生产批次Id
        /// </summary>
        [ColumnMap("BatchId", System.Data.DbType.Int32)]
        public int BatchId
        {
            get {return _batchid;}
            set
            {
                if (object.Equals(this._batchid, value) != true)
                {
                    this._batchid = value;
                    this.RaisePropertyChanged("BatchId");
                }
            }
        }
        
        
        private DateTime _reporttime;
        /// <summary>
        /// 最近一次上报信息时间
        /// </summary>
        [ColumnMap("ReportTime", System.Data.DbType.DateTime)]
        public DateTime ReportTime
        {
            get {return _reporttime;}
            set
            {
                if (object.Equals(this._reporttime, value) != true)
                {
                    this._reporttime = value;
                    this.RaisePropertyChanged("ReportTime");
                }
            }
        }
        
        
    }
}



